package com.navi.loaddata.core.gpEntity;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by ghost on 2018/4/18.
 */
@Entity
@Table(name = "spc_dcdata", schema = "sor", catalog = "qmsprd")
public class SpcDcdata {
    private int dcdataid;
    private String dctype;
    private String shtPnlFlg;
    private String glassId;
    private String shopId;
    private String subShopId;
    private String prodId;
    private String eccode;
    private String flowId;
    private String opeId;
    private String eqptId;
    private String unitEqptId;
    private String subEqptId;
    private String recipeId;
    private String runmode;
    private String owner;
    private String rtc;
    private String qtap;
    private String spcflag;
    private String psubentity;
    private String linkkey;
    private Timestamp evtTime;
    private String lotId;
    private String proctype;
    private String mesEvtName;
    private String timekey;
    private Timestamp mesEvtTime;
    private String mesEvtUser;
    private String mesEvtComment;
    private Timestamp mesUpdatetime;
    private Timestamp dbTimestamp;
    private Timestamp etlTimestamp;

    @Id
    @Column(name = "dcdataid")
    public int getDcdataid() {
        return dcdataid;
    }

    public void setDcdataid(int dcdataid) {
        this.dcdataid = dcdataid;
    }

    @Basic
    @Column(name = "dctype")
    public String getDctype() {
        return dctype;
    }

    public void setDctype(String dctype) {
        this.dctype = dctype;
    }

    @Basic
    @Column(name = "sht_pnl_flg")
    public String getShtPnlFlg() {
        return shtPnlFlg;
    }

    public void setShtPnlFlg(String shtPnlFlg) {
        this.shtPnlFlg = shtPnlFlg;
    }

    @Basic
    @Column(name = "glass_id")
    public String getGlassId() {
        return glassId;
    }

    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }

    @Basic
    @Column(name = "shop_id")
    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    @Basic
    @Column(name = "sub_shop_id")
    public String getSubShopId() {
        return subShopId;
    }

    public void setSubShopId(String subShopId) {
        this.subShopId = subShopId;
    }

    @Basic
    @Column(name = "prod_id")
    public String getProdId() {
        return prodId;
    }

    public void setProdId(String prodId) {
        this.prodId = prodId;
    }

    @Basic
    @Column(name = "eccode")
    public String getEccode() {
        return eccode;
    }

    public void setEccode(String eccode) {
        this.eccode = eccode;
    }

    @Basic
    @Column(name = "flow_id")
    public String getFlowId() {
        return flowId;
    }

    public void setFlowId(String flowId) {
        this.flowId = flowId;
    }

    @Basic
    @Column(name = "ope_id")
    public String getOpeId() {
        return opeId;
    }

    public void setOpeId(String opeId) {
        this.opeId = opeId;
    }

    @Basic
    @Column(name = "eqpt_id")
    public String getEqptId() {
        return eqptId;
    }

    public void setEqptId(String eqptId) {
        this.eqptId = eqptId;
    }

    @Basic
    @Column(name = "unit_eqpt_id")
    public String getUnitEqptId() {
        return unitEqptId;
    }

    public void setUnitEqptId(String unitEqptId) {
        this.unitEqptId = unitEqptId;
    }

    @Basic
    @Column(name = "sub_eqpt_id")
    public String getSubEqptId() {
        return subEqptId;
    }

    public void setSubEqptId(String subEqptId) {
        this.subEqptId = subEqptId;
    }

    @Basic
    @Column(name = "recipe_id")
    public String getRecipeId() {
        return recipeId;
    }

    public void setRecipeId(String recipeId) {
        this.recipeId = recipeId;
    }

    @Basic
    @Column(name = "runmode")
    public String getRunmode() {
        return runmode;
    }

    public void setRunmode(String runmode) {
        this.runmode = runmode;
    }

    @Basic
    @Column(name = "owner")
    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    @Basic
    @Column(name = "rtc")
    public String getRtc() {
        return rtc;
    }

    public void setRtc(String rtc) {
        this.rtc = rtc;
    }

    @Basic
    @Column(name = "qtap")
    public String getQtap() {
        return qtap;
    }

    public void setQtap(String qtap) {
        this.qtap = qtap;
    }

    @Basic
    @Column(name = "spcflag")
    public String getSpcflag() {
        return spcflag;
    }

    public void setSpcflag(String spcflag) {
        this.spcflag = spcflag;
    }

    @Basic
    @Column(name = "psubentity")
    public String getPsubentity() {
        return psubentity;
    }

    public void setPsubentity(String psubentity) {
        this.psubentity = psubentity;
    }

    @Basic
    @Column(name = "linkkey")
    public String getLinkkey() {
        return linkkey;
    }

    public void setLinkkey(String linkkey) {
        this.linkkey = linkkey;
    }

    @Basic
    @Column(name = "evt_time")
    public Timestamp getEvtTime() {
        return evtTime;
    }

    public void setEvtTime(Timestamp evtTime) {
        this.evtTime = evtTime;
    }

    @Basic
    @Column(name = "lot_id")
    public String getLotId() {
        return lotId;
    }

    public void setLotId(String lotId) {
        this.lotId = lotId;
    }

    @Basic
    @Column(name = "proctype")
    public String getProctype() {
        return proctype;
    }

    public void setProctype(String proctype) {
        this.proctype = proctype;
    }

    @Basic
    @Column(name = "mes_evt_name")
    public String getMesEvtName() {
        return mesEvtName;
    }

    public void setMesEvtName(String mesEvtName) {
        this.mesEvtName = mesEvtName;
    }

    @Basic
    @Column(name = "timekey")
    public String getTimekey() {
        return timekey;
    }

    public void setTimekey(String timekey) {
        this.timekey = timekey;
    }

    @Basic
    @Column(name = "mes_evt_time")
    public Timestamp getMesEvtTime() {
        return mesEvtTime;
    }

    public void setMesEvtTime(Timestamp mesEvtTime) {
        this.mesEvtTime = mesEvtTime;
    }

    @Basic
    @Column(name = "mes_evt_user")
    public String getMesEvtUser() {
        return mesEvtUser;
    }

    public void setMesEvtUser(String mesEvtUser) {
        this.mesEvtUser = mesEvtUser;
    }

    @Basic
    @Column(name = "mes_evt_comment")
    public String getMesEvtComment() {
        return mesEvtComment;
    }

    public void setMesEvtComment(String mesEvtComment) {
        this.mesEvtComment = mesEvtComment;
    }

    @Basic
    @Column(name = "mes_updatetime")
    public Timestamp getMesUpdatetime() {
        return mesUpdatetime;
    }

    public void setMesUpdatetime(Timestamp mesUpdatetime) {
        this.mesUpdatetime = mesUpdatetime;
    }

    @Basic
    @Column(name = "db_timestamp")
    public Timestamp getDbTimestamp() {
        return dbTimestamp;
    }

    public void setDbTimestamp(Timestamp dbTimestamp) {
        this.dbTimestamp = dbTimestamp;
    }

    @Basic
    @Column(name = "etl_timestamp")
    public Timestamp getEtlTimestamp() {
        return etlTimestamp;
    }

    public void setEtlTimestamp(Timestamp etlTimestamp) {
        this.etlTimestamp = etlTimestamp;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SpcDcdata spcDcdata = (SpcDcdata) o;

        if (dcdataid != spcDcdata.dcdataid) return false;
        if (dctype != null ? !dctype.equals(spcDcdata.dctype) : spcDcdata.dctype != null) return false;
        if (shtPnlFlg != null ? !shtPnlFlg.equals(spcDcdata.shtPnlFlg) : spcDcdata.shtPnlFlg != null) return false;
        if (glassId != null ? !glassId.equals(spcDcdata.glassId) : spcDcdata.glassId != null) return false;
        if (shopId != null ? !shopId.equals(spcDcdata.shopId) : spcDcdata.shopId != null) return false;
        if (subShopId != null ? !subShopId.equals(spcDcdata.subShopId) : spcDcdata.subShopId != null) return false;
        if (prodId != null ? !prodId.equals(spcDcdata.prodId) : spcDcdata.prodId != null) return false;
        if (eccode != null ? !eccode.equals(spcDcdata.eccode) : spcDcdata.eccode != null) return false;
        if (flowId != null ? !flowId.equals(spcDcdata.flowId) : spcDcdata.flowId != null) return false;
        if (opeId != null ? !opeId.equals(spcDcdata.opeId) : spcDcdata.opeId != null) return false;
        if (eqptId != null ? !eqptId.equals(spcDcdata.eqptId) : spcDcdata.eqptId != null) return false;
        if (unitEqptId != null ? !unitEqptId.equals(spcDcdata.unitEqptId) : spcDcdata.unitEqptId != null) return false;
        if (subEqptId != null ? !subEqptId.equals(spcDcdata.subEqptId) : spcDcdata.subEqptId != null) return false;
        if (recipeId != null ? !recipeId.equals(spcDcdata.recipeId) : spcDcdata.recipeId != null) return false;
        if (runmode != null ? !runmode.equals(spcDcdata.runmode) : spcDcdata.runmode != null) return false;
        if (owner != null ? !owner.equals(spcDcdata.owner) : spcDcdata.owner != null) return false;
        if (rtc != null ? !rtc.equals(spcDcdata.rtc) : spcDcdata.rtc != null) return false;
        if (qtap != null ? !qtap.equals(spcDcdata.qtap) : spcDcdata.qtap != null) return false;
        if (spcflag != null ? !spcflag.equals(spcDcdata.spcflag) : spcDcdata.spcflag != null) return false;
        if (psubentity != null ? !psubentity.equals(spcDcdata.psubentity) : spcDcdata.psubentity != null) return false;
        if (linkkey != null ? !linkkey.equals(spcDcdata.linkkey) : spcDcdata.linkkey != null) return false;
        if (evtTime != null ? !evtTime.equals(spcDcdata.evtTime) : spcDcdata.evtTime != null) return false;
        if (lotId != null ? !lotId.equals(spcDcdata.lotId) : spcDcdata.lotId != null) return false;
        if (proctype != null ? !proctype.equals(spcDcdata.proctype) : spcDcdata.proctype != null) return false;
        if (mesEvtName != null ? !mesEvtName.equals(spcDcdata.mesEvtName) : spcDcdata.mesEvtName != null) return false;
        if (timekey != null ? !timekey.equals(spcDcdata.timekey) : spcDcdata.timekey != null) return false;
        if (mesEvtTime != null ? !mesEvtTime.equals(spcDcdata.mesEvtTime) : spcDcdata.mesEvtTime != null) return false;
        if (mesEvtUser != null ? !mesEvtUser.equals(spcDcdata.mesEvtUser) : spcDcdata.mesEvtUser != null) return false;
        if (mesEvtComment != null ? !mesEvtComment.equals(spcDcdata.mesEvtComment) : spcDcdata.mesEvtComment != null)
            return false;
        if (mesUpdatetime != null ? !mesUpdatetime.equals(spcDcdata.mesUpdatetime) : spcDcdata.mesUpdatetime != null)
            return false;
        if (dbTimestamp != null ? !dbTimestamp.equals(spcDcdata.dbTimestamp) : spcDcdata.dbTimestamp != null)
            return false;
        if (etlTimestamp != null ? !etlTimestamp.equals(spcDcdata.etlTimestamp) : spcDcdata.etlTimestamp != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = dcdataid;
        result = 31 * result + (dctype != null ? dctype.hashCode() : 0);
        result = 31 * result + (shtPnlFlg != null ? shtPnlFlg.hashCode() : 0);
        result = 31 * result + (glassId != null ? glassId.hashCode() : 0);
        result = 31 * result + (shopId != null ? shopId.hashCode() : 0);
        result = 31 * result + (subShopId != null ? subShopId.hashCode() : 0);
        result = 31 * result + (prodId != null ? prodId.hashCode() : 0);
        result = 31 * result + (eccode != null ? eccode.hashCode() : 0);
        result = 31 * result + (flowId != null ? flowId.hashCode() : 0);
        result = 31 * result + (opeId != null ? opeId.hashCode() : 0);
        result = 31 * result + (eqptId != null ? eqptId.hashCode() : 0);
        result = 31 * result + (unitEqptId != null ? unitEqptId.hashCode() : 0);
        result = 31 * result + (subEqptId != null ? subEqptId.hashCode() : 0);
        result = 31 * result + (recipeId != null ? recipeId.hashCode() : 0);
        result = 31 * result + (runmode != null ? runmode.hashCode() : 0);
        result = 31 * result + (owner != null ? owner.hashCode() : 0);
        result = 31 * result + (rtc != null ? rtc.hashCode() : 0);
        result = 31 * result + (qtap != null ? qtap.hashCode() : 0);
        result = 31 * result + (spcflag != null ? spcflag.hashCode() : 0);
        result = 31 * result + (psubentity != null ? psubentity.hashCode() : 0);
        result = 31 * result + (linkkey != null ? linkkey.hashCode() : 0);
        result = 31 * result + (evtTime != null ? evtTime.hashCode() : 0);
        result = 31 * result + (lotId != null ? lotId.hashCode() : 0);
        result = 31 * result + (proctype != null ? proctype.hashCode() : 0);
        result = 31 * result + (mesEvtName != null ? mesEvtName.hashCode() : 0);
        result = 31 * result + (timekey != null ? timekey.hashCode() : 0);
        result = 31 * result + (mesEvtTime != null ? mesEvtTime.hashCode() : 0);
        result = 31 * result + (mesEvtUser != null ? mesEvtUser.hashCode() : 0);
        result = 31 * result + (mesEvtComment != null ? mesEvtComment.hashCode() : 0);
        result = 31 * result + (mesUpdatetime != null ? mesUpdatetime.hashCode() : 0);
        result = 31 * result + (dbTimestamp != null ? dbTimestamp.hashCode() : 0);
        result = 31 * result + (etlTimestamp != null ? etlTimestamp.hashCode() : 0);
        return result;
    }
}
